import { Date, Digdit, Entity, Link, PrimaryUuid, Unique } from '@sker/core'
@Entity({
    name: 'wx_pvuv'
})
@Unique('uk_page_date', ['page', 'date'])
export class WxPvUv {
    static title: string = `页面统计`;
    static resource: string = `wx_pvuv`;

    @PrimaryUuid({ comment: '编号', primaryKeyConstraintName: "PK_WX_PVUV_ID" })
    id!: string;

    @Link({ type: 'varchar', length: 50, comment: '页面路径' })
    page!: string;

    @Digdit({ type: 'int', width: 11, comment: '访问次数' })
    pv!: number;

    @Digdit({ type: 'int', width: 11, comment: '访问人数' })
    uv!: number;

    @Date({ type: 'date', comment: '日期' })
    date!: Date;
}